/**
 *
 */
package com.darren.befriend;

import org.acra.ACRA;
import org.acra.ReportField;
import org.acra.ReportingInteractionMode;
import org.acra.annotation.ReportsCrashes;

import android.app.Application;

import com.parse.Parse;
import com.parse.ParseFacebookUtils;
import com.parse.ParseInstallation;
import com.parse.PushService;

/**
 * @author Sniper
 * 
 */
@ReportsCrashes(formKey = "", mailTo = "nvhai.work.vn@gmail.com", customReportContent = {
		ReportField.APP_VERSION_CODE, ReportField.APP_VERSION_NAME,
		ReportField.ANDROID_VERSION, ReportField.PHONE_MODEL,
		ReportField.CUSTOM_DATA, ReportField.STACK_TRACE, ReportField.LOGCAT }, mode = ReportingInteractionMode.TOAST, resToastText = R.string.crash_toast_text)
public class MyApplication extends Application {

	@Override
	public void onCreate() {
		super.onCreate();

		ACRA.init(this);
		Parse.initialize(this, getString(R.string.parse_app_id),
				getString(R.string.parse_client_key));
		ParseFacebookUtils.initialize(getString(R.string.fb_app_id));
		PushService.setDefaultPushCallback(this, SplashScreenActivity.class);
		ParseInstallation.getCurrentInstallation().saveInBackground();
	}
}
